package dgut.haitaobao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import dgut.haitaobao.entry.IndexImg;
import dgut.haitaobao.mapper.IndexImgMapper;
import dgut.haitaobao.service.IndexImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexImgServiceImpl implements IndexImgService {
    @Resource
    private IndexImgMapper indexImgMapper;

    @Override
    public List<IndexImg> getIndexImgList() {
        QueryWrapper<IndexImg> queryWrapper=new QueryWrapper();
        queryWrapper.eq("status",1).orderByAsc("seq");
        List<IndexImg> indexImgs = indexImgMapper.selectList(queryWrapper);
        return indexImgs;
    }
}
